package com.maven;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Controller;

/**
 * AOP实现的第一种方法proxy,invocationHader
 */


public class Main {

    public static void main(String[] args) {

        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("application.xml");
        DemoService demoService = applicationContext.getBean(DemoService.class);
        demoService.test("我爱你");


    }


}
